
import { IForm } from '@/components/ki-form/type'

export const dialogConfig: IForm = {
  colLayout: {
    span: 24
  },
  itemStyle: {},
  formItems: [
    {
      field: 'name',
      type: 'input',
      label: '商品名称',
      placeholder: '请输入商品名称'
    },
    {
      field: 'oldPrice',
      type: 'input',
      label: '旧价格',
      placeholder: '请输入旧价格'
    },
    {
      field: 'newPrice',
      type: 'input',
      label: '新价格',
      placeholder: '请输入新价格'
    },
    {
      field: 'desc',
      type: 'input',
      label: '描述',
      placeholder: '请输入描述'
    },
    {
      field: 'status',
      type: 'select',
      label: '是否启用',
      placeholder: '请选择状态',
      options: [
        {
          title: '启用',
          value: 1
        },
        {
          title: '禁用',
          value: 0
        }
      ]
    },
    {
      field: 'imgUrl',
      type: 'input',
      label: '图片链接',
      placeholder: '请输入图片链接'
    },
    {
      field: 'inventoryCount',
      type: 'input',
      label: '库存量',
      placeholder: '请输入库存量'
    },
    {
      field: 'saleCount',
      type: 'input',
      label: '销售量',
      placeholder: '请输入销售量'
    },
    {
      field: 'favorCount',
      type: 'input',
      label: '收藏量',
      placeholder: '请输入收藏量'
    },
    {
      field: 'address',
      type: 'input',
      label: '地址',
      placeholder: '请输入地址'
    }
  ]
}
